package com.example.qimo.service;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.example.qimo.dao.Permission;
import com.example.qimo.mapper.PermissionMapper;
import org.springframework.stereotype.Service;

@Service
public class PermissionService extends ServiceImpl<PermissionMapper, Permission> implements IService<Permission> {
    public IPage<Permission> getStudentList(int p) {
        IPage<Permission> page = new Page<>(p, 3);
        LambdaQueryWrapper<Permission> qr = new LambdaQueryWrapper<>();
//        return studentMapper.getUList(page,qr);
        return page(page,qr);
    }

}
